var renqi = [
	{img:"https://dzplatform.nosdn.127.net/upload/73c3546e320a8a8ca1a29c1b2d211b0e/121212.jpg",name:"军团战争",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/3f9cac46b94f404c5697f45f652be7a9/宣传小图.jpg",name:"战三国",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/e57923f34b10598ebd220ff403d29e63/小图.jpg",name:"混乱武林III苍山负...",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/c8b3b27d23ea512a6f7dab0e41a79f4a/timg2.jpg",name:"弓箭手小生存",pingfen:"正式版"},
	{img:"http://nos.netease.com/blz/100/0/375cf598367ceab73ec6c64b7301a4e9.jpg",name:"绿色循环圈",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/17bf5adc71ed62c91f3427aa0b20ead9.jpg",name:"忍者村大战",pingfen:"正式版"}
]

var gaopingfen = [
	{img:"https://dzplatform.nosdn.127.net/upload/7ef7d80b8aba3d47c81951c7b6db8a01.jpg",name:"五庚战纪",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/679b5a07a3ff243305b3e940f77acbb6.jpg",name:"寒月传说",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/333f7ac38ad0aa5e2247343f24b90035.jpg",name:"成长",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/b88b807f0a97acedc5ce3cbcf5010584.jpg",name:"梦幻与现实",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/6c532e9a71fe4b89ecf22b86b7b10d9a.jpg",name:"烈焰乾坤",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/26303c533c69155264331833361c4335.jpg",name:"战狼风云",pingfen:"正式版"}
]

var zhuixin = [
	{img:"https://dzplatform.nosdn.127.net/upload/5d5b5cd9a77eb0299d080e578b566151/怪兽仙境小图.jpg",name:"怪兽仙境mw",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/b48d8055a3a9c94a270f2630f912e2ce.jpg",name:"宇宙循环圈TD",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/041b00d5972187843e4617923912a734.jpg",name:"任我逍遥",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/127e277a9a961f6889bfee17bd4d030f.jpg",name:"19世纪-维多利亚",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/817f11cd6b1270fec7312692e760f2eb.png",name:"四面楚歌<背水一战>",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/2065f0785dfc2f2a62432019ad82ddea.jpg",name:"魔力奇缘",pingfen:"正式版"}

]

var time = [{tye:"人气地图",content:renqi},
			{tye:"高评分地图",content:gaopingfen},
			{tye:"最新地图",content:zhuixin}];




var kdqlunDiv = document.querySelector(".k-d-q-lun");
for (var i = 0; i < time.length; i++) {
	var kdqremenDiv = document.createElement("div");
		kdqremenDiv.className = "kdq-remen";
		kdqlunDiv.appendChild(kdqremenDiv);

	var p = document.createElement("p");
		p.innerHTML = time[i].tye;
		kdqremenDiv.appendChild(p);

	var kdqulDiv = document.createElement("div");
		kdqulDiv.className = "kdq-ul";
		kdqremenDiv.appendChild(kdqulDiv);

	for (var a = 0; a < 6; a++) {
		var kdqliDiv = document.createElement("div");
		kdqliDiv.className = "kdq-li";
		kdqulDiv.appendChild(kdqliDiv);

		var img = document.createElement("img");
		img.src = time[i].content[a].img;
		kdqliDiv.appendChild(img);

		var p = document.createElement("p");
		p.className = "kdq-p2";
		kdqliDiv.appendChild(p);

		var span = document.createElement("span");
		p.appendChild(span);

		var span = document.createElement("span");
		kdqliDiv.appendChild(span);

		var p = document.createElement("p");
		p.className = "kdq-p";
		kdqliDiv.appendChild(p);
		for (var q = 0; q < 5; q++) {
			var span = document.createElement("span");
			p.appendChild(span);
		}

		var p = document.createElement("p");
		p.className = "kdq-p1";
		kdqliDiv.appendChild(p);

		var h1 = document.createElement("h1");
		h1.innerHTML = time[i].content[a].name;
		p.appendChild(h1);
		
		var span = document.createElement("span");
		span.innerHTML = time[i].content[a].pingfen;
		h1.appendChild(span);


	}
}
		var chakanDiv = document.createElement("div");
		chakanDiv.className = "cha-kan";
		kdqlunDiv.appendChild(chakanDiv);

		var p = document.createElement("p");
		chakanDiv.appendChild(p);

		var span = document.createElement("span");
		span.style.height = '60px';
		span.innerHTML = "查看全部";
		p.appendChild(span);




var quanBU = [
	{img:"https://dzplatform.nosdn.127.net/upload/7ef7d80b8aba3d47c81951c7b6db8a01.jpg",name:"五庚战纪",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/679b5a07a3ff243305b3e940f77acbb6.jpg",name:"寒月传说",pingfen:"正式版"},	
	{img:"https://dzplatform.nosdn.127.net/upload/333f7ac38ad0aa5e2247343f24b90035.jpg",name:"成长",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/b88b807f0a97acedc5ce3cbcf5010584.jpg",name:"梦幻与现实",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/6c532e9a71fe4b89ecf22b86b7b10d9a.jpg",name:"烈焰乾坤",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/26303c533c69155264331833361c4335.jpg",name:"战狼风云",pingfen:"正式版"},
	{img:"http://nos.netease.com/dzplatform/upload/e600cb2eb2bf59e7ceea7b7bbc1da6aa/390x256.jpg",name:"LT3C",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/62f42abb4ae8aa576f3f11d1cb27fc4e.jpg",name:"刀剑神域UnderW...",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/1e8cf55d235024adf4a0a2d89456c887/QQ图片20170203202659.jpg",name:"不可能的Boss Ⅲ",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/6c73a01dbb4153910b3f2e7ea5059103.jpg",name:"轮回之始",pingfen:"正式版"},
	{img:"http://nos.netease.com/dzplatform/upload/bdc01e7b82c73489f559b2f371e14b5d/123.png",name:"天灾异次元大乱斗",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/721f652f7b416f48d089f6c9e1f3bd69.jpg",name:"逍遥竞之战",pingfen:"正式版"}



]

var fangShou = [
	{img:"https://dzplatform.nosdn.127.net/upload/7ef7d80b8aba3d47c81951c7b6db8a01.jpg",name:"五庚战纪",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/679b5a07a3ff243305b3e940f77acbb6.jpg",name:"寒月传说",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/b88b807f0a97acedc5ce3cbcf5010584.jpg",name:"梦幻与现实",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/6c532e9a71fe4b89ecf22b86b7b10d9a.jpg",name:"烈焰乾坤",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/26303c533c69155264331833361c4335.jpg",name:"战狼风云",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/721f652f7b416f48d089f6c9e1f3bd69.jpg",name:"逍遥竞之战",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/27a336cd222c9981d75c55f8b0f752ce.jpg",name:"寒冰战纪",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/7f552c3c569520046d425302828e263e.jpg",name:"斩魔之剑",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/7f552c3c569520046d425302828e263e.jpg",name:"冥王录",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/78329070e640e40eaca618120d315ac6.jpg",name:"神魔释厄传",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/14aeecb7db742e864bfdb4b60090cfb6/Xiaotu.jpg",name:"洛丹伦圣战",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/4feef272e03e2b8c352c99cb4c42fc05.jpg",name:"天渊城",pingfen:"正式版"}

]



var taFang = [
	{img:"http://nos.netease.com/dzplatform/upload/f4c318aff0fdcd71b751a8e8fa1b2662/mkry21.0 (3).jpg",name:"魔卡荣耀",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/07b03255f6a7611977d42340ffc33594.jpg",name:"武侠玄幻",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/3eef641c5d9899af5fd2bf7da982f88b.jpg",name:"龙魂TD",pingfen:"正式版"},
	{img:"http://nos.netease.com/dzplatform/upload/8870f865927750da9d7c36682ad640bc/123.png",name:"YouTD",pingfen:"正式版"},
	{img:"http://nos.netease.com/blz/100/0/72f8b52feecca3f280c1174be8e19290.jpg",name:"宝石TD",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/13d95478d7713186dd82542f7e07efde.jpg",name:"东方妖绮录",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/fb298cd99bffc7ea7e059ab9cdfbe6f5.jpg",name:"孤城噩梦",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/0848ee51629e9fdc9838879a3a816114/塔防塔小宣传地图.jpg",name:"塔防塔",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/aed7168e9f130663be25275b94fddb06.jpg",name:"位面战争",pingfen:"正式版"},
	{img:"http://dzplatform.nos.netease.com/images/dz/hall/14F0734855A63BBAEBDDF951948BCE5B.jpg",name:"YouTD",pingfen:"正式版"},
	{img:"http://nos.netease.com/dzplatform/upload/8afe1d98d0f5af5931335c4e3d6e2278/小.jpg",name:"富甲天下",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/e51817b152c6b25f726d5f19b9f5511f/小图.jpg",name:"紫海TD",pingfen:"正式版"}

]


var jueShe = [	
	{img:"https://dzplatform.nosdn.127.net/upload/62f42abb4ae8aa576f3f11d1cb27fc4e.jpg",name:"刀剑神域UnderW...",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/1e8cf55d235024adf4a0a2d89456c887/QQ图片20170203202659.jpg",name:"不可能的Boss Ⅲ",pingfen:"正式版"},
	{img:"http://nos.netease.com/dzplatform/upload/e44aedd646cc6c362a0c99729f7abb28/Xiaotu.jpg",name:"双人暗夜精灵战役",pingfen:"正式版"},
	{img:"http://nos.netease.com/dzplatform/upload/41f287c8192dda9e3474aa465fddd840/xiaotu.jpg",name:"双人哨兵战役",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/13353534e987e98d4d2433af34f66d2e.jpg",name:"魔兽世界",pingfen:"正式版"},
	{img:"http://nos.netease.com/dzplatform/upload/237d4d4607350999ee8cc2d91734f48d/QQ图片20170916132801.jpg",name:"洛丹伦-诺森德圣战",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/1adb3bc19546f38c356ba12142cef0ce.jpg",name:"次元终想录",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/d8b303bc2ffef2a651345a5339910647.jpg",name:"梦幻之夜",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/93b2b5c924d301e69a4dfec97ee3525b/390.jpg",name:"末世王朝之旅",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/1eded445a7cd1709fd86bd97ff415ba3/07.jpg",name:"世界树妄想",pingfen:"正式版"},
	{img:"http://nos.netease.com/dzplatform/upload/8dd8dc1d781bc80bcc383faa14263713/u=2108453812,3689188797&fm=15&gp=0_副本.jpg",name:"限制区601",pingfen:"正式版"},
	{img:"http://dzplatform.nos.netease.com/images/dz/hall/EBBD89177A34D5A6862353DE69C801AC.jpg",name:"痛苦的聚会",pingfen:"正式版"}



]

var duiKan = [
	{img:"http://nos.netease.com/dzplatform/upload/e600cb2eb2bf59e7ceea7b7bbc1da6aa/390x256.jpg",name:"LT3C",pingfen:"正式版"},
	{img:"http://nos.netease.com/dzplatform/upload/bdc01e7b82c73489f559b2f371e14b5d/123.png",name:"天灾异次元大乱斗",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/39bb4f66faf1464d5035b2b473364634.jpg",name:"宠物小精灵超级对战",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/675777e59dc331cd9b7c355977e93091/宣 传 图.jpg",name:"精灵宝可梦时空之痕",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/fa989ef87fd57411495dd748aaaff750.jpg",name:"家园",pingfen:"正式版"},
	{img:"http://nos.netease.com/dzplatform/upload/472fcbc8d6b1131fa2bc9268a719eb0c/1.jpg",name:"信长之野望C系",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/5796d9548e852b17b725f68d01e56c6b.jpg",name:"欧陆争霸",pingfen:"正式版"},
	{img:"http://nos.netease.com/dzplatform/upload/19589d1aa52354087cbbd333efdc6f09/封面.jpg",name:"单一兵种大作战",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/792f0fcdbb213f773b438b749b8a8409/作者之家预览小图.jpg",name:"死亡岛大逃杀",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/a4c86ee1d8f9d177b963ef2a29bc7c3a/武斗祭.jpg",name:"东方武斗祭",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/4fa52fb58e1d91ca348061e832cc4021.jpg",name:"部落丶之战",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/dacc9d72a8aa5872e7b9a98ddf8ea768/QQ截图20170709113902.jpg",name:"大蛇无双",pingfen:"正式版"}



]

var shengChun = [
	{img:"https://dzplatform.nosdn.127.net/upload/333f7ac38ad0aa5e2247343f24b90035.jpg",name:"成长",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/6c73a01dbb4153910b3f2e7ea5059103.jpg",name:"轮回之始",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/625269c25b53667f5815b2c282ed4202.jpg",name:"幸存者",pingfen:"正式版"},
	{img:"http://nos.netease.com/blz/100/0/803c46a4ec4744f6630845041d218bfd.jpg",name:"地王",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/98e8b5d6beb3019f2b1f50bca86f4c23.png",name:"YGGDRASIL世...",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/ba515da94ea85a2bb8782ba2fec31837.jpg",name:"圣战-Alter",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/2a19875ec642691ce92816430f26f116.jpg",name:"亡者之夜：余波",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/345e2364296bca13d979eeb7d16681a0.jpg",name:"无尽的生存",pingfen:"正式版"},
	{img:"http://nos.netease.com/blz/100/0/d6943560cbcec41b77045ff319cd621f.jpg",name:"灾变之另一座城市",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/2a19875ec642691ce92816430f26f116.jpg",name:"无人生还",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/345e2364296bca13d979eeb7d16681a0.jpg",name:"东方劫后传",pingfen:"正式版"},
	{img:"http://nos.netease.com/blz/100/0/d6943560cbcec41b77045ff319cd621f.jpg",name:"迷雾森林",pingfen:"正式版"}

]


var ORPG = [

	{img:"https://dzplatform.nosdn.127.net/upload/57e66d80bf9ac84b3c4ad2530a828bf8.jpg",name:"刀剑神域记忆重组",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/b6d8b6c0db885e53ac44f133277dabb4/g1.jpg",name:"东方幻想乡RPG",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/eb95317503b6b6c85d5af46724e9ea8a.jpg",name:"传说の命运之旅",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/66e7924a468131b529c9463b1a2433a0.jpg",name:"RG盒子冒险岛时间神...",pingfen:"正式版"},
	{img:"http://nos.netease.com/dzplatform/upload/af021570a241b4221c9584c74cc10a48/11111111.jpg",name:"骑士-初春之雪OR",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/d7254b4d49c9d700fc390e236ddf7d5a/390x256.jpg",name:"超自然之巨变前汐",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/55d793df0ee6d96c3f7f28ca4f97412b.jpg",name:"[骑士]春恋雪",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/a4032f00c654d84b45c9691a1a6765bd/小宣传图2.jpg",name:"西部荒野",pingfen:"正式版"},
	{img:"http://nos.netease.com/dzplatform/upload/20beb766693e37efc4e3a0dd52101d7f/44444.jpg",name:"远征RPG",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/b87e87e386d71aa34fc36615bfe93fe2.jpg",name:"东方幻想乡RPG②",pingfen:"正式版"},
	{img:"http://nos.netease.com/dzplatform/upload/343c4818ce601da4b1efad7eb805f27b/timg_副本.jpg",name:"千年王国",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/f50214912a5362482216e4271f0bd82b.jpg",name:"RG盒子冒险岛神秘岛",pingfen:"正式版"}

]

var qiTA = [
	{img:"https://dzplatform.nosdn.127.net/upload/0f3ce0f2c52417f1b9a2095d20048661/封面.jpg",name:"皇家争霸",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/7fb99c49e6838b612f8834ca17236673.jpg",name:"卡片对战",pingfen:"正式版"},
	{img:"http://nos.netease.com/dzplatform/upload/142b470e695f76d7d5ef496e99acf047/躲猫猫预览.jpg",name:"躲猫猫",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/7e7e55a4337e7f2771a6b572c8430312.jpg",name:"逃脱大师-沙滩岛简单...",pingfen:"正式版"},
	{img:"http://nos.netease.com/blz/100/0/41dc3ee180223666c66b05e696e8cd3f.jpg",name:"迷失之塔",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/aa42b61778d6ae78f218a477ad72e194/小1.jpg",name:"超级火柴人 完美汉化...",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/975f144cb925fac82c03d360d993f25c.jpg",name:"逃脱大师",pingfen:"正式版"},
	{img:"http://nos.netease.com/blz/100/0/7c8bcc0e22859f49ea6e15f5071a047c.jpg",name:"天黑请闭眼",pingfen:"正式版"},
	{img:"http://nos.netease.com/dzplatform/upload/ada79c40fbcfc3fbdc0868f9b47ea130/102.jpg",name:"這裡是罐頭麵包",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/ab988b254de5c9e7623eb1ef2f12096a.jpg",name:"暗杀-Assassi...终结版",pingfen:"正式版"},
	{img:"https://dzplatform.nosdn.127.net/upload/5821006ab8d88373fc5f0834b9235d60/官方小图模板.jpg",name:"弹跳足球",pingfen:"正式版"},
	{img:"http://nos.netease.com/blz/100/0/704720071d0bd82cd4f76d9d8b20092e.jpg",name:"逃脱大师",pingfen:"正式版"}
]

var JiHe = [
{name:"查看更多",tupian:quanBU},
{name:"查看更多",tupian:fangShou},
{name:"查看更多",tupian:taFang},
{name:"查看更多",tupian:jueShe},
{name:"查看更多",tupian:duiKan},
{name:"查看更多",tupian:shengChun},
{name:"查看更多",tupian:ORPG},
{name:"查看更多",tupian:qiTA}
]



var kdqlunqDiv = document.querySelector(".k-d-q-lun-q");

for (var i = 0; i < JiHe.length; i++) {
	var kdqlunOneDiv = document.createElement("div");
	kdqlunOneDiv.className = "k-d-q-lun";
	kdqlunqDiv.appendChild(kdqlunOneDiv);

	var kdqlunTongDiv = document.createElement("div");
	kdqlunTongDiv.className = "kdq-lun-Tong";
	kdqlunOneDiv.appendChild(kdqlunTongDiv);

	var kdqSelectDiv = document.createElement("div");
	kdqSelectDiv.className = "kdq-Select";
	kdqlunTongDiv.appendChild(kdqSelectDiv);

	var p = document.createElement("p");
	kdqSelectDiv.appendChild(p);

	var strong = document.createElement("strong");
	strong.data="1";
	strong.innerHTML = "评分最高";
	p.appendChild(strong);

	var span = document.createElement("span");
	p.appendChild(span);

	var h4 = document.createElement("h4");
	span.appendChild(h4);

	var p = document.createElement("p");
	p.className ="search";
	kdqlunTongDiv.appendChild(p);

	var input = document.createElement("input");
	input.placeholder = "输入地图名称";
	p.appendChild(input);

	var a = document.createElement("a");
	p.appendChild(a);

	var span = document.createElement("span");
	a.appendChild(span);

	var kdqlunTuoDiv = document.createElement("div");
	kdqlunTuoDiv.className = "kdq-lun-Tuo";
	kdqlunOneDiv.appendChild(kdqlunTuoDiv);

	for (var t = 0; t < 12; t++) {
		var kdqTuoliDiv = document.createElement("div");
		kdqTuoliDiv.className = "kdq-Tuo-li"
		kdqlunTuoDiv.appendChild(kdqTuoliDiv);

		var img = document.createElement("img");
		img.src = JiHe[i].tupian[t].img;
		kdqTuoliDiv.appendChild(img);

		var p = document.createElement("p");
		kdqTuoliDiv.appendChild(p);

		var span = document.createElement("span");
		p.appendChild(span);

		var span = document.createElement("span");
		kdqTuoliDiv.appendChild(span);

		var p3 = document.createElement("p");
		p3.className = "kdq-Tuo-p3";
		kdqTuoliDiv.appendChild(p3);

		for (var e = 0; e < 5; e++) {
			var span = document.createElement("span");
			span.className = "kdq-Tuo-span1";
			p3.appendChild(span);
		}


		var p4 = document.createElement("h1");
		p4.className = "kdq-Tuo-p4";
		kdqTuoliDiv.appendChild(p4);

		var a = document.createElement("a");
		a.innerHTML = JiHe[i].tupian[t].name;
		p4.appendChild(a);

		var span = document.createElement("span");
		span.innerHTML = JiHe[i].tupian[t].pingfen;
		p4.appendChild(span);



	}
	var kdqTuoChaiDiv = document.createElement("div");
		kdqTuoChaiDiv.className = "kdq-Tuo-Chai";
		kdqlunOneDiv.appendChild(kdqTuoChaiDiv);

	var p = document.createElement("p");
		kdqTuoChaiDiv.appendChild(p);

	var span = document.createElement("span");
		span.style = "height: 60px";
		span.innerHTML = "查看全部";
		p.appendChild(span);
}


// 轮播图js

// 找到所有类名为k-d-q-lun-bo
var kdqlunOneDiv = document.querySelectorAll(".k-d-q-lun");
// 找到所有的span
var spans = document.querySelectorAll(".kdq-span span");

for (var i = 0; i < spans.length; i++) {
	spans[i].index = i;
	spans[i].onclick = function (e) {
		 for (var i = 0; i < spans.length; i++) {
		 	spans[i].className = "";
		 	kdqlunOneDiv[i].className = "k-d-q-lun";
		 }

		 spans[e.target.index].className = "kdq-bug";
		 kdqlunOneDiv[e.target.index].className = "k-d-q-lun k-d-q-lun-a";

	};
}





























